package top.kmtec.service;

import jakarta.servlet.http.HttpServletRequest;
import top.kmtec.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author wangfenghuan
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-02-04 09:07:30
*/

public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param account
     * @param password
     * @param checkPassword
     * @return
     */
    long userRegister(String account, String password, String checkPassword, String code);

    /**
     * 用户登录
     * @param account
     * @param password
     * @param checkPassword
     * @return
     */
    User userLogin(String account, String password, HttpServletRequest request);

    /**
     * 用户注销
     * @param request
     * @return
     */
    Integer userLogout(HttpServletRequest request);
}
